﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.Ph5_2009A.NewShopping.DTO
{
    public class MemberAddressInputDto
    {
        /// <summary>
        /// 会员ID
        /// </summary>
        [Required(ErrorMessage = "会员ID不能为空")]
        public Guid MemberId { get; set; }
        /// <summary>
        /// 联系姓名
        /// </summary>
        [Required(ErrorMessage = "收件联系人不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [Required(ErrorMessage = "收件联系人电话不能为空")]
        public string Phone { get; set; }

        /// <summary>
        /// 所在城市
        /// </summary>

        [Required(ErrorMessage = "收件人所在城市不能为空")]
        public string City { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>

        [Required(ErrorMessage = "收件详细地址不能为空")]
        public string Address { get; set; }

        /// <summary>
        /// 是否默认地址
        /// </summary>
        public bool IsDefault { get; set; } = false;
    }
}
